#pragma once

#include <linux/spinlock.h>

#ifdef CONFIG_MEMORY_HOTPLUG

/* If movable_node boot option specified */
extern bool movable_node_enabled;
static inline bool movable_node_is_enabled(void)
{
	return movable_node_enabled;
}

#else /* ! CONFIG_MEMORY_HOTPLUG */

static inline bool movable_node_is_enabled(void)
{
	return false;
}
#endif /* ! CONFIG_MEMORY_HOTPLUG */
